TELCAVoiceDetect
Activates or deactivates voice detection on a call appearance.
pascal TELErr TELCAVoiceDetect ( TELCAHandle hTELCA, Boolean VoiceDetectOn);
hTELCA
- A handle you provide to the call appearance structure for the call appearance of interest. You can get the handle from the
TELSetupCall
function (page 4-24).VoiceDetectOn
- A Boolean value. Set this parameter to
true
if you want to activate voice detection for the call appearance referenced byhTELCA
. Set it tofalse
to deactivate voice detection.- function result
- A result code.
DESCRIPTION
TheTELCAVoiceDetect
function activates or deactivates voice detection for the call appearance specified by thehTELCA
parameter, according to the value of theVoiceDetectOn
parameter. Positive voice detection indicates that the call has been answered on the remote side.If you call the
TELCAVoiceDetect
function to activate voice detection, your call appearance message handler gets atelCAVoiceDetectedMsg
message when voice is detected on the line. Note, however, that voice detection is not a continuous process; as a result, you get at most only onetelCAVoiceDetectedMsg
message each time you callTELCAVoiceDetect
to activate voice detection.Typically, you call this function after calling
TELConnect
(page 4-27) orTELDialDigits
(page 4-28) so that your application can smoothly handle the case in which no ring tone is received before the remote party answers the call.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help